home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / gutenprint / bit-ops.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-03-15  |  2.8 KB  |  82 lines

  1. /*
  2.  * "$Id: bit-ops.h,v 1.2.14.1 2007/05/12 19:14:27 faust3 Exp $"
  3.  *
  4.  *   Softweave calculator for gimp-print.
  5.  *
  6.  *   Copyright 2000 Charles Briscoe-Smith <cpbs@debian.org>
  7.  *
  8.  *   This program is free software; you can redistribute it and/or modify it
  9.  *   under the terms of the GNU General Public License as published by the Free
  10.  *   Software Foundation; either version 2 of the License, or (at your option)
  11.  *   any later version.
  12.  *
  13.  *   This program is distributed in the hope that it will be useful, but
  14.  *   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  15.  *   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  16.  *   for more details.
  17.  *
  18.  *   You should have received a copy of the GNU General Public License
  19.  *   along with this program; if not, write to the Free Software
  20.  *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21.  */
  22.  
  23. /**
  24.  * @file gutenprint/bit-ops.h
  25.  * @brief Bit operations.
  26.  */
  27.  
  28. #ifndef GUTENPRINT_BIT_OPS_H
  29. #define GUTENPRINT_BIT_OPS_H
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. extern void    stp_fold(const unsigned char *line, int single_length,
  36.              unsigned char *outbuf);
  37.  
  38. extern void    stp_fold_3bit(const unsigned char *line, int single_length,
  39.              unsigned char *outbuf);
  40.  
  41. extern void    stp_fold_3bit_323(const unsigned char *line, int single_length,
  42.              unsigned char *outbuf);
  43.  
  44. extern void    stp_fold_4bit(const unsigned char *line, int single_length,
  45.              unsigned char *outbuf);
  46.  
  47. extern void    stp_split_2(int height, int bits, const unsigned char *in,
  48.                 unsigned char *outhi, unsigned char *outlo);
  49.  
  50. extern void    stp_split_4(int height, int bits, const unsigned char *in,
  51.                 unsigned char *out0, unsigned char *out1,
  52.                 unsigned char *out2, unsigned char *out3);
  53.  
  54. extern void    stp_unpack_2(int height, int bits, const unsigned char *in,
  55.                  unsigned char *outlo, unsigned char *outhi);
  56.  
  57. extern void    stp_unpack_4(int height, int bits, const unsigned char *in,
  58.                  unsigned char *out0, unsigned char *out1,
  59.                  unsigned char *out2, unsigned char *out3);
  60.  
  61. extern void    stp_unpack_8(int height, int bits, const unsigned char *in,
  62.                  unsigned char *out0, unsigned char *out1,
  63.                  unsigned char *out2, unsigned char *out3,
  64.                  unsigned char *out4, unsigned char *out5,
  65.                  unsigned char *out6, unsigned char *out7);
  66.  
  67. extern void    stp_unpack_16(int height, int bits, const unsigned char *in,
  68.                   unsigned char *out0, unsigned char *out1,
  69.                   unsigned char *out2, unsigned char *out3,
  70.                   unsigned char *out4, unsigned char *out5,
  71.                   unsigned char *out6, unsigned char *out7,
  72.                   unsigned char *out8, unsigned char *out9,
  73.                   unsigned char *out10, unsigned char *out11,
  74.                   unsigned char *out12, unsigned char *out13,
  75.                   unsigned char *out14, unsigned char *out15);
  76.  
  77. #ifdef __cplusplus
  78.   }
  79. #endif
  80.  
  81. #endif /* GUTENPRINT_BIT_OPS_H */
  82.